package managers.popupManager;

import java.awt.event.ActionListener;
import java.awt.event.ComponentListener;

public class DefaultPopupFactory implements PopupFactory {

	@Override
	public Dialog createInformationDialog(ComponentListener listener, int life, String eventType) {
		if (life > 0)
			return new TimedInformationDialog(listener, life, eventType);
		else
			return new InformationDialog(listener, eventType);
	}

	@Override
	public Dialog createConfirmDialog(ActionListener okAction, ComponentListener listener, int life, String eventType) {
		return new ConfirmDialog(okAction, listener, eventType);
	}

	
	
}
